export default lazy = {
  mounted(el) {
    const imgSrc = el.src
    el.src = ''

    const observer = new IntersectionObserver(([{ isIntersecting }]) => {
      console.log('触发了')
      if (isIntersecting) {
        el.src = imgSrc
        observer.unobserve(el)
      }
    })
    observer.observe(el)
  }
}
